﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Header1.ascx.cs" Inherits="GUI.Controls.Shared.Header1" %>
<%@ Register TagPrefix="uc" TagName="MenuTop" Src="~/Controls/Shared/MenuTop.ascx" %>
<%@ Register TagPrefix="uc" TagName="Top" Src="~/Controls/Shared/Top.ascx" %>
<script type="text/javascript">
    $('body').css('background', 'none');
</script>
<div class="header1 clearfix">
    <uc:Top ID="Top1" runat="server" />
    <div class="w980 wp" style="position: relative;">
        <a href="/" class="logo sprite"></a>
    </div>
</div>
<uc:MenuTop ID="MenuTop1" runat="server" />
<div class="mgb10 clearfix">
</div>
<script type="text/javascript">
    var holdTop = function () {
        var top = $(".header1").height();
        var y = $(this).scrollTop();
        if (y > top) {
            $('#divTopMenu').addClass('fixed');
            $('body').addClass('pdt50');
        } else {
            $('#divTopMenu').removeClass('fixed');
            $('body').removeClass('pdt50');
        }
    };
    $(window).scroll(function () {
        holdTop();
    });
</script>
